//
//  HomeMiddleLiveTableViewCell.m
//  CYWFrame
//
//  Created by 于顺燊 on 2018/8/14.
//  Copyright © 2018年 Macx. All rights reserved.
//

#import "HomeMiddleLiveTableViewCell.h"

@implementation HomeMiddleLiveTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
	self.joinLiveButton.layer.cornerRadius = 10.0;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(SimpleLiveInfo *)model
{
	if (_model != model) {
		_model = model;
		self.title.text = model.title;
		self.name.text = model.nickname;
		[self.liveImage sd_setImageWithURL:[NSURL URLWithString:model.face]];
		self.audienceCount.text = [NSString stringWithFormat:@"%ld人观看", model.viewer_num];
	}
}

@end
